package com.ship.dispatch.bean;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ship.common.core.base.Joinable;
import com.ship.common.core.mapping.Label;
import com.ship.common.core.mapping.TableColumn;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

/**
 * 船舶船员信息异动表
 * @TableName sm_ship_crew_detail_change
 */
@TableName(value ="sm_ship_crew_detail_change")
@Data
public class SmShipCrewDetailChange extends BaseBean implements Joinable {

    /**
     * 船员主表ID
     */
    @ApiModelProperty(value = "船员主表ID")
    private Long shipCrewId;

    /**
     * 船员名字
     */
    @Label(value = "船员名字")
    @TableColumn
    @ApiModelProperty(value = "船员名字")
    private String crewName;

    /**
     * 船员职务
     */
    @Label(value = "船员职务")
    @TableColumn
    @ApiModelProperty(value = "船员职务")
    private String crewRank;

    /**
     * 上/下船时间
     */
    @Label(value = "上/下船时间")
    @TableColumn
    @ApiModelProperty(value = "上/下船时间")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
    private Date boatDate;

    /**
     * 上/下船地点
     */
    @Label(value = "上/下船地点")
    @TableColumn
    @ApiModelProperty(value = "上/下船地点")
    private String boatPlace;

    /**
     * 状态（1：在船，0：离船）
     */
    @Label(value = "状态")
    @ApiModelProperty(value = "状态（1：在船，0：离船）")
    private String status;

    /**
     * 更新时间
     */
    @Label(value = "更新时间")
    @TableColumn
    @ApiModelProperty(value = "更新时间")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updatedTime;

    /**
     * 更新人
     */
    @Label(value = "更新人")
    @TableColumn
    @ApiModelProperty(value = "更新人")
    private String updatedBy;

    @Override
    public String getLabel() {
        return null;
    }

    @Override
    public String getValue() {
        return null;
    }
}